﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_MasterPageAdmin : System.Web.UI.MasterPage
{

    protected void Page_Load(object sender, EventArgs e)
    {
        MembershipUser membershipUser = Membership.GetUser();
        if (membershipUser != null)
        {
            string loggedinuser = Membership.GetUser().ToString();            
            lblUserName.Text = "Hi, " + loggedinuser;
        }
        
    }

    protected void btnLogOff_Click(object sender, EventArgs e)
    {
        FormsAuthentication.SignOut();
        Response.Redirect("~/LogInPage.aspx");
    }
}
